From: Giovanni Campagna Date: Mon, 4 Jun 2012 22:13:26 +0000 (+0200) Subject: St: draw the actor at full opacity when creating shadow material X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1686 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=07664e7d2f5bcc97fd137fd4a228be54046fe5a9;p=gnome-shell.git St: draw the actor at full opacity when creating shadow material When creating the shadow, we should ignore the opacity set on the actor and its parent, as it will be applied again at a later stage. https://bugzilla.gnome.org/show_bug.cgi?id=677412 --- diff --git a/src/st/st-private.c b/src/st/st-private.c index 4096d15c7..c928e6aa7 100644 --- a/src/st/st-private.c +++ b/src/st/st-private.c @@ -460,7 +460,10 @@ _st_create_shadow_pipeline_from_actor (StShadow *shadow_spec, cogl_framebuffer_clear (fb, COGL_BUFFER_BIT_COLOR, &clear_color); cogl_framebuffer_translate (fb, -box.x1, -box.y1, 0); cogl_framebuffer_orthographic (fb, 0, width, height, 0, 0, 1.0); + + clutter_actor_set_opacity_override (actor, 255); clutter_actor_paint (actor); + clutter_actor_set_opacity_override (actor, -1); G_GNUC_BEGIN_IGNORE_DEPRECATIONS; cogl_pop_framebuffer ();